/*
Package service
router map file.
*/

package service

import "github.com/gin-gonic/gin"

func Router(e *gin.Engine) {
	ho := e.Group("/webhooks")
	{
		ho.POST("/:site/:user/:repo", Webhooks)
		//ho.POST("/:site/:user", Webhooks)
	}
	auth := e.Group("/auth")
	{
		auth.GET("/callback", Callback)
		auth.GET("/gitee", GetAuth)
	}
}
